<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>智能设备</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid layui-form" wid100>
  <input type="hidden" name="deviceSn" value="$!{deviceSn}"/>
  <input type="hidden" name="deviceTypeId" value="$!{deviceTypeId}"/>
  <div class="layui-card">
    <div class="layui-card-header">
      基础信息
      <div style="float: right">
        <button class="layui-btn layui-btn-sm" lay-submit lay-filter="LAY-update">修改</button>
      </div>
    </div>
    <div class="layui-card-body">
      <div class="layui-row">
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">设备序列号</label>
            <div class="layui-form-mid layui-word-aux">$!{deviceSn}</div>
          </div>
        </div>
        <div class="layui-col-sm5">
          <div class="layui-form-item">
            <label class="layui-form-label">设备类型</label>
            <div class="layui-form-mid layui-word-aux">$!{deviceTypeName}（$!{deviceTypeId}）</div>
          </div>
        </div>
        #if($batchId)
        <div class="layui-col-sm3">
          <div class="layui-form-item">
            <label class="layui-form-label">生产批次</label>
            <div class="layui-form-mid layui-word-aux">$!{batchId}</div>
          </div>
        </div>
        #end
      </div>
      <div class="layui-row">
        <div class="layui-col-sm5">
          <div class="layui-form-item">
            <label class="layui-form-label">设备功能项</label>
            <div class="layui-form-mid layui-word-aux">$!{deviceFunCodes}</div>
          </div>
        </div>
        <div class="layui-col-sm7">
          <div class="layui-form-item">
            <label class="layui-form-label">设备功能名称</label>
            <div class="layui-form-mid layui-word-aux">$!{deviceFunNames}</div>
          </div>
        </div>
      </div>
      <div class="layui-row">
        <div class="layui-col-sm6">
          <div class="layui-form-item">
            <label class="layui-form-label">设备所属人</label>
            <div class="layui-input-block">
              <select id="userId" name="userId" class="layui-hide" lay-ignore>
                <option value="$!{userId}">$!{userInfo}</option>
              </select>
            </div>
          </div>
        </div>
        #if($belongDate)
        <div class="layui-col-sm6">
          <div class="layui-form-item">
            <label class="layui-form-label">归属时间</label>
            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($belongDate,'yyyy-MM-dd HH:mm')}</div>
          </div>
        </div>
        #end
      </div>
    #if($placeId)
    <div class="layui-row">
      <div class="layui-col-sm4">
        <div class="layui-form-item">
          <label class="layui-form-label">部署网点</label>
          <div class="layui-form-mid layui-word-aux">$!{placeName}($!{placeId})</div>
        </div>
      </div>
      <div class="layui-col-sm4">
        <div class="layui-form-item">
          <label class="layui-form-label">网点地区</label>
          <div class="layui-form-mid layui-word-aux">$!{province}-$!{city}-$!{cityArea}</div>
        </div>
      </div>
      <div class="layui-col-sm4">
        <div class="layui-form-item">
          <label class="layui-form-label">部署时间</label>
          <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($deployDate,'yyyy-MM-dd HH:mm')}</div>
        </div>
      </div>
    </div>
    #end
    <div class="layui-row">
      #if($bindNote)
      <div class="layui-col-sm4">
        <div class="layui-form-item">
          <label class="layui-form-label">绑定信息</label>
          <div class="layui-form-mid layui-word-aux">$!{bindNote}</div>
        </div>
      </div>
      #end
      <div class="layui-col-sm4">
        <div class="layui-form-item">
          <label class="layui-form-label">最后修改</label>
          <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($updateDate,'yyyy-MM-dd HH:mm')}</div>
        </div>
      </div>
      <div class="layui-col-sm4">
        <div class="layui-form-item">
          <label class="layui-form-label">创建时间</label>
          <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($createDate,'yyyy-MM-dd HH:mm')}</div>
        </div>
      </div>
    </div>
    </div><!-- /.layui-card-body -->
  </div><!-- /.layui-card -->
  <div class="layui-card">
    <div class="layui-card-header">功能列表</div>
    <div class="layui-card-body">
      <table id="LAY-table" lay-filter="LAY-table"></table>
      <script type="text/html" id="LAY-table-toolbar">
        <a class="layui-btn layui-btn-xs" lay-event="deviceInfo">查看</a>
      </script>
    </div>
  </div>
</div>
#parse('/footFiles.html')
<script>
layui.config({
  base: '$!{webRoot}/layuiadmin/'
  ,webRoot:'$!{webRoot}'
  ,resDomain:'$!{resDomain}'
}).extend({
  index: 'lib/index'
  ,device_info:'device/device_info'
}).use(['index', 'form', 'device_info'])
</script>
</body>
</html>